package gui;

import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.border.LineBorder;
import java.awt.Color;

public class VComentarioNuevo extends JPanel {

	/**
	 * Create the panel.
	 */
	public VComentarioNuevo() {
		this.
		setBorder(new LineBorder(new Color(0, 0, 0)));
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{75, 565, 0};
		gridBagLayout.rowHeights = new int[]{23, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
		setLayout(gridBagLayout);
		
		JTextArea textArea = new JTextArea();
		textArea.setLineWrap(true);
		textArea.setRows(4);
		GridBagConstraints gbc_textArea = new GridBagConstraints();
		gbc_textArea.fill = GridBagConstraints.BOTH;
		gbc_textArea.gridwidth = 2;
		gbc_textArea.insets = new Insets(0, 0, 5, 0);
		gbc_textArea.gridx = 0;
		gbc_textArea.gridy = 0;
		add(textArea, gbc_textArea);
		
		JButton btnPublicar = new JButton("Publicar");
		GridBagConstraints gbc_btnPublicar = new GridBagConstraints();
		gbc_btnPublicar.anchor = GridBagConstraints.NORTHEAST;
		gbc_btnPublicar.gridx = 1;
		gbc_btnPublicar.gridy = 1;
		add(btnPublicar, gbc_btnPublicar);

	}

}
